﻿@model TestSystem.ViewModel.HomeVMs.LoginVM


@{
    Layout = null;
}
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script src="/jquery.min.js"></script>
    <script src="/jquery.cookie.js"></script>
    <script src="/layui/layui.js"></script>
    <script src="/_js/framework_layui.js?time=@DateTime.Now.Ticks"></script>
    <link rel="stylesheet" href="~/sitecss/logincss.css">
    <title>WTM</title>
    <script type="text/javascript">
    $(document).ready(function () {
        var openid = @ViewBag.openidl

    });
   
      function reg() {
          $.ajax({
              url: '/Login/Registere',
              type: 'post',
              success: function (res) {
                  if (res == 'ok') {
                      if (confirm('操作成功')) {
                          window.location.href = "/";
                      } else {
                          window.location.href = "/";
                      }
                  } else {
                      alert(res);
                  }               
              },
              error: function (xhr) {
                  myFunction();
              },

          })
        }

       
        function myFunction(title) {
            if (confirm(title)) {
                window.location.href = "/Login/Login"
            } else {
                window.location.href = "/Login/Login"
            }
        }
   
    </script>
</head>

<body class="loginBody">
    <div class="loginDiv">
        <h4>
            <img src="~/images/logo.png" width="80" />
            <img src="~/images/slogen2.png" />
        </h4>
        <form action="/Login/Login" >         
            <ul class="loginForm">
                <li>
                    <i><img src="~/images/icon-login04.png" /></i>
                    <input type="text" id="ITCode" placeholder="账号" class="login-input"  >
                </li>
                <li>
                    <i style="width: 16px;"><img src="~/images/icon-login01.png" /></i>
                    <input type="text" id="Name" placeholder="姓名" class="login-input" >
                </li>             
                <li>
                    <button type="button" id="btnFrom" class="login-button" style="cursor:pointer">完成</button>                   
                </li>
            </ul>
        </form>
    </div>


</body>

</html>
